<?php

namespace Config;

class Route {

    /**
     * 路由规则.
     * 
     * @var array. 
     */
    public static $routeRules = array(
        '/' => ['handler' => 'Index@index'],
        '/share/{productId:\d+}' => ['handler' => 'Index@share'],
        '/item/{productId:\d+}' => ['handler' => 'Index@item'],
        '/search' => ['handler' => 'Index@search'],
    );

}
